<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes">
<title>4天瘦20斤完美计划</title>
<script src="https://shc7432.github.io/public/getLinkInput/getLinkInput.js"></script>
<h1>第二天</h1>
<br><div>今天的任务是:俯卧撑10000个<br><img src="data:image/png,ffffff" onclick="" alt="做就是了" width="400" height="250"><br>请将手机带在身上做,我们会帮您计数<div contentEditable="true">本次任务完成后，系统自动为您跳转到下个任务</div></div>
<div>本次任务剩余: <span style="color:blue"><span id=time>10000</span>个</span>
<style type="text/css">
.progress-wrap {
  border: 1px solid #333;
}
.bar {
  background: #60c0e0;
  height: 30px;
  text-align:center;
}
.progress {
  animation: progress 3s;
}
@keyframes progress {
  from { width: 0%; }
  to { width: 100%; }
}
</style>

<div class="progress-wrap" onclick="//wywc()">
  <div class="bar progress" contenteditable></div>
</div>

</div>

<script>

function checkEnd(){
localStorage.perfectplanfor4days="3"
var d=new Date()
function checkHad0(inp){
if(inp<10||String(inp).length<2) return "0"+inp;
return inp;
}
d.setDate(d.getDate() + 1)
localStorage.perfectplanfor4daysday=d.getFullYear()+"-"+checkHad0(d.getMonth()+1)+"-"+checkHad0(d.getDate())+
"T"+checkHad0(d.getHours())+":"+checkHad0(d.getMinutes())+":"+checkHad0(d.getSeconds())+"+08:00"
location.href="index.html"
}

tme=9999;

setTimeout(runtime,3000)

function runtime(){
document.getElementById("time").innerHTML=tme;
tme=tme-21;
if(tme<1){checkEnd()} else setTimeout(runtime,5);
}
</script>
